Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update python sdk docs #272

Merged
merged 3 commits into from
Apr 18, 2024
Merged

feat: update python sdk docs #272

merged 3 commits into from
Apr 18, 2024

Conversation

philipbalbas
Copy link
Contributor

@philipbalbas philipbalbas commented Apr 18, 2024

🚀 This description was created by Ellipsis for commit 7fc7dd3

Summary:

This PR updates the Python SDK documentation and modifies the GitHub workflow to generate Python SDK documentation, reflecting changes in API client, types, managers, and OpenAI patch.

Key points:

  • Updated julep/api/client.md to reflect changes in the API client.
  • Updated julep/api/types/index.md to include new types and modifications to existing ones.
  • Updated julep/managers/agent.md, julep/managers/session.md, and julep/managers/user.md to reflect changes in the respective managers.
  • Updated julep/utils/openai_patch.md to reflect changes in the OpenAI patch.
  • Updated .github/workflows/generate-docs.yml to include steps for generating Python SDK documentation.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested.

  • Reviewed the entire pull request up to b73f799
  • Looked at 5450 lines of code in 56 files
  • Took 5 minutes and 21 seconds to review
More info
  • Skipped 0 files when reviewing.
  • Skipped posting 1 additional comments because they didn't meet confidence threshold of 50%.
1. docs/python-sdk-docs/julep/api/client.md:126:
  • Assessed confidence : 100%
  • Grade: 0%
  • Comment:
    The PR adds new metadata fields to the API methods, but it does not seem to include changes to the actual implementation of these methods to handle these new fields. Please ensure that these new fields are properly handled in the implementation.
  • Reasoning:
    The PR is adding new metadata fields to the API methods. However, the PR does not include any changes to the actual implementation of these methods to handle the new metadata fields. This could potentially lead to issues if these fields are not properly handled in the implementation.

Workflow ID: wflow_ICzUQRJzWywwQqzi


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. We'll respond in a few minutes. Learn more here.

@@ -134,25 +137,27 @@ async def chat(

### AsyncJulepApi().create_agent

[Show source in client.py:1651](../../../../../../julep/api/client.py#L1651)
[Show source in client.py:2109](../../../../../../julep/api/client.py#L2109)

Create a new agent

#### Arguments

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type of the 'instructions' parameter in the 'create_agent' method has been changed to 'List[str]' but the description still refers to 'List[Instruction]'. Please update the description to match the new type.

@@ -134,25 +137,27 @@

### AsyncJulepApi().create_agent

[Show source in client.py:1651](../../../../../../julep/api/client.py#L1651)
[Show source in client.py:2109](../../../../../../julep/api/client.py#L2109)

Create a new agent
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type of the 'instructions' parameter has been changed to 'List[str]'. Please update the description to reflect this change.

Suggested change
Create a new agent
- `-` *instructions* - typing.Optional[typing.List[str]]. List of instruction strings for the agent

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested.

  • Performed an incremental review on 8941e8d
  • Looked at 60 lines of code in 1 files
  • Took 1 minute and 35 seconds to review
More info
  • Skipped 0 files when reviewing.
  • Skipped posting 0 additional comments because they didn't meet confidence threshold of 50%.

Workflow ID: wflow_21iFMffc6pRwHssK


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. We'll respond in a few minutes. Learn more here.

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'actions/setup-python' action is used with version 'v5', which is not a valid release. The latest release of 'actions/setup-python' is 'v3'. Please update the version.

Suggested change
- uses: actions/setup-python@v5
- uses: actions/setup-python@v3

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me!

  • Performed an incremental review on 7fc7dd3
  • Looked at 40 lines of code in 1 files
  • Took 1 minute and 44 seconds to review
More info
  • Skipped 0 files when reviewing.
  • Skipped posting 1 additional comments because they didn't meet confidence threshold of 50%.
1. /docs/sdks/python-sdk-docs/client-1.md:137:
  • Assessed confidence : 50%
  • Comment:
    The type of the 'instructions' parameter in the 'create_agent' and 'update_agent' methods has been updated from 'Instruction' to 'str'. Please ensure that this change is consistent with the rest of the codebase and doesn't break anything.
  • Reasoning:
    The PR author has updated the type of the 'instructions' parameter in the 'create_agent' and 'update_agent' methods from 'Instruction' to 'str'. This change is reflected in both the async and non-async versions of these methods. This change seems to be in line with the PR description and there doesn't seem to be any issues with it. However, I would need to check the rest of the codebase to ensure that this change doesn't break anything.

Workflow ID: wflow_5ujokCM6o7JioR4y


Not what you expected? You can customize the content of the reviews using rules. Learn more here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants